export async function GET(request: Request) {
  console.log('GET', request.url)
  const url = new URL(request.url)

  const id = url.searchParams.get('id')

  return Response.json({ message: 'post', id })
}

export async function POST(request: Request) {
  console.log('POST', request.url)
  const body = await request.json()
  console.log(body)

  return Response.json({ message: 'test', req: body })
}
